package com.geen.tuoke.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.geen.tuoke.R
import com.geen.tuoke.bean.WxFileInfo
import com.geen.tuoke.databinding.ItemWxFileBinding

/**
 * @Author LuoJi
 * @Date 2022/1/18-16:29
 * @Desc 微信文件
 */
class WxFileAdapter : BaseQuickAdapter<WxFileInfo,BaseDataBindingHolder<ItemWxFileBinding>>(R.layout.item_wx_file) {

    override fun convert(holder: BaseDataBindingHolder<ItemWxFileBinding>, item: WxFileInfo) {
        with(holder.dataBinding!!){
            wxFile = item
            executePendingBindings()
        }
    }
}